<template>
<div class="PageTools">
    <el-card>
        <el-row type="flex" justify="space-between" align="middle">
            <!-- 前-->
            <el-col>
                <div v-if="showBefore" class="before">
                    <i class="el-icon-info" />
                    <!-- 定义前面得插槽 -->
                    <slot name="before" />
                </div>
            </el-col>

            <!-- 后 -->
            <el-col>
                <el-row type="flex" justify="end">
                    <slot name="after" />
                </el-row>
            </el-col>

        </el-row>
    </el-card>
</div>
</template>

<script>
export default {
	props: {
		showBefore: {
			type: Boolean,
			default: false
		}
	}

}
</script>

<style lang="scss" scoped>
	.PageTools{
		.before{
			display: inline-block;
			color: #409eff;
			line-height: 34px;
			padding:0 10px;
			background: rgba(230, 247, 255, 1);
			border: 1px solid rgba(145, 213, 255, 1);
			border-radius: 3px;
			i {
			  margin-right: 5px;
			  color: #409eff;
			}
		}
	}
</style>
